package com.shundr.auth.base;

import android.app.Application;

import com.baidu.mapapi.SDKInitializer;
import com.shundr.auth.channel.BuildConfig;
import com.shundr.auth.common.util.AttrUtil;
import com.shundr.auth.common.util.BDLocManager;
import com.shundr.auth.common.util.CrashHandler;
import com.shundr.auth.common.util.LImageLoader;
import com.shundr.auth.frame.db.LDaoManager;
import com.shundr.auth.frame.http.HttpExecutor;
import com.shundr.auth.frame.util.LLoader;
import com.shundr.auth.frame.util.LLogger;

public class BaseApplication extends Application {

	@Override
	public void onCreate() {
		super.onCreate();
		LLogger.isDebug = BuildConfig.DEBUG;//禁止打印log
		LLoader.initApp(getApplicationContext());// 初始化应用信息
		LImageLoader.initConfig(getApplicationContext());
		LDaoManager.init(getApplicationContext());
		AttrUtil.init(getApplicationContext());
		SDKInitializer.initialize(getApplicationContext());
		HttpExecutor.init(getApplicationContext());
		CrashHandler.getInstance().init(getApplicationContext());
	}

}
